<?xml version="1.0"?>
<Template>
	<!-- Template Header -->
	<TemplateConfiguration>
		<_Name>ASP.NET MVC Views Configuration</_Name>
		<_Category>ASP.NET MVC</_Category>
		<Icon>md-html-file-icon</Icon>
		<LanguageName>C#</LanguageName>
		<ProjectType>AspNetApp</ProjectType>
		<DefaultFilename IsFixed="True">Web.config</DefaultFilename>
		<_Description>Creates an ASP.NET MVC Web.config file for the Views directory.</_Description>
	</TemplateConfiguration>

	<Conditions>
		<ParentProject PermittedCreationPaths="Views" ExcludedFiles="Web.config" />
		<AspNetMvc />
	</Conditions>

	<!-- Template Content -->
	<TemplateFiles>
		<File name="Web.config">
<![CDATA[<?xml version="1.0"?>

<configuration>
	<configSections>
		<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
			<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
			<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
		</sectionGroup>
	</configSections>

	<system.web.webPages.razor>
		<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
		<pages pageBaseType="System.Web.Mvc.WebViewPage">
			<namespaces>
				<add namespace="System.Web.Mvc" />
				<add namespace="System.Web.Mvc.Ajax" />
				<add namespace="System.Web.Mvc.Html" />
				<add namespace="System.Web.Routing" />
				<add namespace="${RootNamespace}" />
			</namespaces>
		</pages>
	</system.web.webPages.razor>

	<appSettings>
		<add key="webpages:Enabled" value="false" />
	</appSettings>

	<system.webServer>
		<handlers>
			<remove name="BlockViewHandler"/>
			<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
		</handlers>
	</system.webServer>
</configuration>]]>
		</File>
	</TemplateFiles>
</Template>